package com.sofwin.service.impl.contents;

import com.github.pagehelper.PageInfo;
import com.sofwin.mapper.CHistoryDetailMapper;
import com.sofwin.pojo.CHistoryDetail;
import com.sofwin.pojo.CHistoryDetailExample;
import com.sofwin.service.contents.CHistoryDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: authority-management-system.git
 * @description: TODO
 * @author: Mr.Gao
 * @create: 2021-04-26 09:57
 **/
@Service
public class CHistoryDetailServiceImpl implements CHistoryDetailService {

    @Autowired
    private CHistoryDetailMapper mapper;


    @Override
    public List<CHistoryDetail> selectAll(CHistoryDetail cd) {
        CHistoryDetailExample ex = new CHistoryDetailExample();
        CHistoryDetailExample.Criteria criteria = ex.createCriteria();
        criteria.andMainIdEqualTo(cd.getMainId());
        List<CHistoryDetail> cHistoryDetails = mapper.selectByExample(ex);
        return cHistoryDetails;
    }


}
